﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace Lisphi.Lab.ProfWFChap02
{
    public sealed partial class Workflow1 : SequentialWorkflowActivity
    {
        private string _firstName;
        private string _message;

        public string FirstName { set { this._firstName = value; } }

        public string Message { get { return this._message; } }

        public Workflow1()
        {
            InitializeComponent();
        }

        private void createMessage_ExecuteCode(object sender, EventArgs e)
        {
            this._message = "Hello, " + this._firstName + "!";
        }
    }

}
